package cn.tedu.hospitalgroupproject.server.content.dao.persist.repository.impl;

import cn.tedu.hospitalgroupproject.server.content.dao.persist.mapper.HospitalNoticeMapper;
import cn.tedu.hospitalgroupproject.server.content.dao.persist.repository.IHospitalNoticeRepository;
import cn.tedu.hospitalgroupproject.server.content.pojo.entity.HospitalNotice;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


@Slf4j
@Repository
public class HospitalNoticeRepositoryImpl implements IHospitalNoticeRepository {

   @Autowired
   private HospitalNoticeMapper hospitalNoticeMapper;

    public HospitalNoticeRepositoryImpl() {
        log.info("创建数据库对象:HospitalNoticeRepositoryImpl");
    }

    @Override
    public int insert(HospitalNotice hospitalNotice) {
        log.debug("开始向[医院公告表]中插入数据:{}",hospitalNotice);
        return hospitalNoticeMapper.insert(hospitalNotice);
    }
}
